package cn.edu.cxcyzx.entity;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public class ApplyProject implements Serializable {

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5758328035576021478L;
	
	private int id;
	private int projectId;
	private String projectName;
	private int projectStatus;//项目状态：0-待定，1-通过，2-驳回，3完成
	private String leaderId;
	private String leaderName;
	private String declareReport;
	private Timestamp applyTime;
	private Date finishTime;
	private String projectInfo;
	private int leaderRole;
	private int memberNum;
	private String fail_reason;//驳回原因
	
	public ApplyProject(){}
	
	public ApplyProject(int projectId,int projectStatus){
		this.projectId=projectId;
		this.projectStatus=projectStatus;
	}
	public String getFail_reason() {
		return fail_reason;
	}
	public void setFail_reason(String fail_reason) {
		this.fail_reason = fail_reason;
	}
	public int getMemberNum() {
		return memberNum;
	}
	public void setMemberNum(int memberNum) {
		this.memberNum = memberNum;
	}
	public int getLeaderRole() {
		return leaderRole;
	}
	public void setLeaderRole(int leaderRole) {
		this.leaderRole = leaderRole;
	}
	public String getProjectInfo() {
		return projectInfo;
	}
	public void setProjectInfo(String projectInfo) {
		this.projectInfo = projectInfo;
	}
	public Date getFinishTime() {
		return finishTime;
	}
	public void setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getProjectId() {
		return projectId;
	}
	public void setProjectId(int projectId) {
		this.projectId = projectId;
	}
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	public int getProjectStatus() {
		return projectStatus;
	}
	public void setProjectStatus(int projectStatus) {
		this.projectStatus = projectStatus;
	}
	public String getLeaderId() {
		return leaderId;
	}
	public void setLeaderId(String leaderId) {
		this.leaderId = leaderId;
	}
	
	public String getLeaderName() {
		return leaderName;
	}
	public void setLeaderName(String leaderName) {
		this.leaderName = leaderName;
	}
	public String getDeclareReport() {
		return declareReport;
	}
	public void setDeclareReport(String declareReport) {
		this.declareReport = declareReport;
	}
	public Timestamp getRealApplyTime(){
		return this.applyTime;
	}
	public String getApplyTime() {
		if(this.applyTime==null){
			return "";
		}else{
			return (new SimpleDateFormat("yyyy-MM-dd").format(this.applyTime)).toString();
		}
		
	}
	public void setApplyTime(Timestamp applyTime) {
		this.applyTime = applyTime;
	}
	@Override
	public String toString() {
		return "ApplyProject [id=" + id + ", projectId=" + projectId
				+ ", projectName=" + projectName + ", projectStatus="
				+ projectStatus + ", leaderId=" + leaderId + ", leaderName="
				+ leaderName + ", declareReport=" + declareReport
				+ ", applyTime=" + applyTime + ", finishTime=" + finishTime
				+ ", projectInfo=" + projectInfo + ", leaderRole=" + leaderRole
				+ ", memberNum=" + memberNum + "]";
	}
	
	
}
